#include<iostream>
#include<cstdlib>
using namespace std;

char *strcpy(char *src)
{
	int i,count=0;
	char *c=src,*src1;
	while(*c!='\0')
		{
		count++;
		c++;}
	src1=(char *)malloc(sizeof(char)*(count+1));
	for(i=0;i<count;i++)
		src1[i]=src[i];
		src1[i]='\0';
		return src1;
 } 
int main()
{
	char *a,*b;
	a="hello";
	b=strcpy(a);
	cout<<b<<endl;
	return 0;
 } 
